<?php
/**
 * Intreface DAO
 *
 * @author: Ali
 * 
 */
interface MainMenuDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return MainMenu 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param mainMenu primary key
 	 */
	public function delete($id);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param MainMenu mainMenu
 	 */
	public function insert($mainMenu);
	
	/**
 	 * Update record in table
 	 *
 	 * @param MainMenu mainMenu
 	 */
	public function update($mainMenu);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByMH($value);

	public function queryByLink1($value);

	public function queryByLink2($value);


	public function deleteByMH($value);

	public function deleteByLink1($value);

	public function deleteByLink2($value);


}
?>